using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Microsoft.Xna.Framework;

namespace FBPChaos
{
	public static class ReadData
	{
		public static string[] readLines(string filename)
		{
            try
            {
                StreamReader file = new StreamReader(filename);
                string line;
                List<string> lines = new List<string>();
                // Read lines from the file until the end of the file is reached.
                while ((line = file.ReadLine()) != null)
                {
                    lines.Add(line);
                    //Console.WriteLine(line);
                }
                Console.WriteLine(lines.Count);
                return lines.ToArray();
            }
            catch (Exception e)
            {
                Console.WriteLine(e.Message);
            };
            return null;
		}


	}
}
